package cn.com.b2office.service;

import java.util.List;
import java.util.Map;

import cn.com.b2office.domain.Category;

public interface CategoryService {

	/**
	 * 列出商品分类的层级结构
	 * 
	 * @return
	 */
	Map<Category, List<Category>> listCascadeCategories();

	Category getCategory(String categoryId);

	List<Category> findAncestries(String categoryId);

	/**
	 * 检索该分类的直接子类
	 * 
	 * @param categoryId
	 * @return
	 */
	List<Category> findDirectChilds(String categoryId);
	
	List<Category> findTopLevelCategories();

}
